package Test_0713;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-07-14
 * Time: 9:36
 */
class Date{
    public int year;
    public int month;
    public int day;
    public void setDate(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void printDate(){
        System.out.println(this.year+"."+this.month+"."+this.day);
    }
}
public class Test3 {
    public static void main(String[] args) {
        Date d1=new Date();
        Date d2=new Date();
        Date d3=new Date();
        d1.setDate(2024,1,1);
        d2.setDate(2024,2,2);
        d3.setDate(2024,3,3);
        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
}
